1bashThis demonstrates extracting the directory path from a file path using the dirname command.dirname "/My/path/to/file.txt"external toolsdirnamefile path manipulation